%footer{:class => "footer__container--#{@custom_footer.theme}"}
  .footer__content
    %div{:class => "footer__links-container#{@custom_footer.container_modifier}"}
      .footer__logo-container
        .footer__logo-image
          - if @custom_footer.show_logo?
            = image_tag @custom_footer.logo
          .footer__copyrights--markdown
            = markdown(@custom_footer.copyright)
        - if @custom_footer.links?
          - @custom_footer.links.each_slice(5) do |links|
            %ul.footer__link-list
              - links.each do |link|
                %li.footer__link-list-item
                  %a.footer__link{:href => link.url}= link.title
      - if @custom_footer.links?
        %ul.footer__link-list
          - @custom_footer.links.each do |link|
            %li.footer__link-list-item
              %a.footer__link{:href => link.url}= link.title
      - if @custom_footer.social?
        .footer__social-media
          - @custom_footer.social.each_slice(3) do |socials|
            - socials.each do |social|
              %a.footer__social-media-link{:href => social.url, :rel => "noreferrer", :target => "_blank"}
                = render 'layouts/footer/social_icons', social_service: social.provider
            %br
    %hr.footer__separator/
    .footer__copyrights--markdown
      = markdown(@custom_footer.copyright)
